Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
I had the same problem ("Call to undefined function: fnmatch()") using PHP 4.2.3 on a hosted webserver; so I wrote "my own" fnmatch(). When a program starts up, it is in the C locale; a call to setlocale(LC_ALL, "") will enable the default locale, and these days, the default locale usually uses UTF-8, in which case many string operations become more complex. You may also check out all available functions/classes of the module fnmatch , or try the search function . This is called globbing. You could do this using fnmatch, by reading the directory entries one by one and testing each one with fnmatch. import tokenize from optparse import OptionParser from fnmatch import fnmatch try: frozenset. basename = os.path.basename(filename) for pattern in options.exclude Problem/Motivation. fnmatch() is not available in PHP on all platforms. Proposed resolution. Instead, use a replacement for the fnmatch function. I cant give a direct link right now but a Google search should quickly solve your problem better. ...(such as in the argument to the find -name primary when find is being called using one of the exec functions, or in the pattern argument to the fnmatch(3C) function... Any help would be greatly appreciated? Previously running script fails with Fatal error: Call to undefined function fnmatch() in... Модуль glob - Расширенный вариант fnmatch. Модуль находит все совпадения имен файлов и заданого Информация взята v3.kz |
загрузка...
|